class Grid {
    protected static origin = {x: 0, y: 0};
    public constructor (public scale: number){}
    public calculateDistanceFromOrigin(point: {x: number; y: number;}) {
        const xDist = (point.x - Grid.origin.x);
        const yDist = (point.y - Grid.origin.y);

        return Math.sqrt(xDist * xDist + yDist * yDist) / this.scale
    }
}

export default Grid;
